<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="fm"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>学员信息管理系统</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href="statics/css/bootstrap.min.css">
<style>
* {
	margin: 0 auto;
	text-align: center;
}
#list{
	margin: 50px auto;
	width: 800px;
}
</style>
</head>

<body>
	<div>
		<h2 style="margin-top: 30px;">学员信息列表</h2>
		<div id="list">
			<table border="1" id="studentList" class="table table-bordered">
				<tr>
					<th colspan="7" style="text-align: right;"><a
						href="${pageContext.request.contextPath }/student/add">添加学员</a></th>
				</tr>
				<tr style="background: yellow;">
					<th>编号</th>
					<th>姓名</th>
					<th>性别</th>
					<th>年龄</th>
					<th>电话</th>
					<th>email</th>
					<th>班级</th>
				</tr>
				<c:forEach var="student" items="${StudentList}">
					<tr>
						<th>${student.id}</th>
						<th>${student.name}</th>
						<th>${student.gender}</th>
						<th>${student.age}</th>
						<th>${student.telephone}</th>
						<th>${student.email}</th>
						<th>${student.className}</th>
					</tr>
				</c:forEach>
			</table>
		</div>
		<div></div>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/statics/js/jquery-1.11.1.min_044d0927.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/statics/js/studentList.js"></script>
</body>
</html>
